<template>
	<view>
		<view v-if="a==1">
			<my></my>
		</view>
		<view v-else>
			<order></order>
		</view>
		<u-tabbar :value="a" @change="name => a = name" :fixed="true" :placeholder="true"
			:safeAreaInsetBottom="true">
			<u-tabbar-item text="订单" :icon="a==0?'order':'order'"></u-tabbar-item>
			<u-tabbar-item text="我的" :icon="a==0?'account':'account-fill'"></u-tabbar-item>
		</u-tabbar>
	</view>
</template>

<script>
	import my from '../enterpriseSide/my/my.vue'
	import order from '../enterpriseSide/order/order.vue'
	export default {
		data() {
			return {
				a: 1
			}
		},
		components: {
			my,
			order
		},
		methods: {

		}
	}
</script>

<style>

</style>
